// 获取视频播放地址
export function getVideoUrl(id) {
    return `/video/url?id=${id}`;
}
// 视频详情
export function getVideoDetail(id) {
    return `/video/detail?id=${id}`;
}
// 相关视频
export function getVideoRelated(id) {
    return `/related/allvideo?id==${id}`;
}
// 获取视频分类列表
export function getVideoCatagoryList() {
    return `/video/category/list`;
}
// 获取视频标签列表
export function getVideoTagList() {
    return `/video/group/list`;
}
// 获取推荐视频
export function getRecommendedVideo(offset=0) {
    return `/video/timeline/recommend?offset=${offset}`;
}

// 获取全部视频列表
export function getAllVideoLists() {
    return `/video/timeline/all`;
}

// 获取视频标签/分类下的视频
export function getVideoByTagOrClass(id, offset=0) {
    return `/video/group?id=${id}&offset=${offset}`;
}
